integrate Function

public pure function integrate(dt, x, iv) result(rst)

Integrates a data set.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: dt

The sample interval.

real(kind=real64), intent(in), dimension(:) :: x

The data set to integrate.

real(kind=real64), intent(in), optional :: iv

The initial value. The default value is zero.

Return Value real(kind=real64), allocatable, dimension(:)

The integrated data set.